package com.jiangnan.model;

/**
 *
 * @author chenliang
 * @email wschenliang@aliyun.com
 */
public class IpModel extends PacketModel {
    private static final long serialVersionUID = -2460190273743592770L;

    private byte v;
    private int len;
    private int id;
    private int ip_flag;
    private boolean flags_rb;
    private boolean flags_df;
    private boolean flags_mf;
    private short flags_offset;
    private int ttl;
    private int protocol;
    private int ip_checksum;

    public byte getV() {
        return v;
    }

    public int getLen() {
        return len;
    }

    public void setLen(int len) {
        this.len = len;
    }

    public void setV(byte v) {
        this.v = v;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getIp_flag() {
        return ip_flag;
    }

    public void setIp_flag(int ip_flag) {
        this.ip_flag = ip_flag;
    }

    public boolean getFlags_rb() {
        return flags_rb;
    }

    public void setFlags_rb(boolean flags_rb) {
        this.flags_rb = flags_rb;
    }

    public boolean getFlags_df() {
        return flags_df;
    }

    public void setFlags_df(boolean flags_df) {
        this.flags_df = flags_df;
    }

    public boolean getFlags_mf() {
        return flags_mf;
    }

    public void setFlags_mf(boolean flags_mf) {
        this.flags_mf = flags_mf;
    }

    public short getFlags_offset() {
        return flags_offset;
    }

    public void setFlags_offset(short flags_offset) {
        this.flags_offset = flags_offset;
    }

    public int getTtl() {
        return ttl;
    }

    public void setTtl(int ttl) {
        this.ttl = ttl;
    }

    public int getIp_checksum() {
        return ip_checksum;
    }

    public void setIp_checksum(int ip_checksum) {
        this.ip_checksum = ip_checksum;
    }

    public int getProtocol() {
        return protocol;
    }

    public void setProtocol(int protocol) {
        this.protocol = protocol;
    }
}
